package com.neusoft.databus.core.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.neusoft.bizcore.web.dto.result.ResultDTO;
import com.neusoft.databus.common.bean.CommandBean;

/**
 * description
 *
 * @author sunchf
 * @date 2018年12月26日 上午11:13:46
 */
@FeignClient("agent")
public interface AgentMicroService extends ExecuteCollectService {
    @Override
    @RequestMapping(method = RequestMethod.POST, value = "/api/w/commands/collect")
    ResultDTO<CommandBean> collect(CommandBean command,
            @RequestHeader(name = "stateIdentifier", required = false) String stateIdentifier);

    @Override
    @RequestMapping(method = RequestMethod.POST, value = "/api/w/commands/control")
    ResultDTO<CommandBean> control(CommandBean command,
            @RequestHeader(name = "stateIdentifier", required = false) String stateIdentifier);

}
